<template>
  <div class="calns-1">
    <div class="wei-1">
      <div class="inss-1">
        {{ item.consultTitle }}({{
          item.consultStatus == 1 ? '已答复' : '未答复'
        }})
      </div>
      <div class="sd-1">{{ item.consultTime }}</div>
    </div>
    <div class="wei-1" v-if="item.consultDetails.length">
      <div class="insd-1">答复内容如下:</div>
      <div
        class="insd-1"
        v-for="(items, index) in item.consultDetails"
        :key="index"
      >
        <div class="inss-1">{{ items.consultContent }}</div>
        <div class="sd-1">{{ items.createTime }}</div>
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup>
defineProps<{
  item: any
}>()
</script>

<style lang="scss" scoped>
.calns-1 {
  width: 100%;
  min-height: 100px;
  background: #fff;
  padding: 10px;
  box-sizing: border-box;
  margin-bottom: 10px;
  display: flex;
}
.inss-1 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #333;
}
.wei-1 {
  flex: 1;
}
.sd-1 {
  font-size: 12px;
  color: #999;
}
</style>
